package com.bwie.service.impl;

import com.bwie.common.domain.User;
import com.bwie.common.domain.UserRole;
import com.bwie.mapper.UserMapper;
import com.bwie.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @className: UserServiceImpl
 * @Description: TODO
 * @version: v1.８.0
 * @author: 房新路
 * @date: 2025/8/4 10:24
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findByUsername(String username) {
        User data=userMapper.findByUsername(username);
        return data;
    }

    @Override
    public UserRole findByRole(Integer userId) {
        UserRole data=userMapper.findByRole(userId);
        return data;
    }
}